gtk4.git
12 years agotestsuite: Update a11y/menubutton3.ui test expectations
Carlos Garnacho [Thu, 6 Mar 2014 23:11:17 +0000 (00:11 +0100)]
testsuite: Update a11y/menubutton3.ui test expectations

Popover is now minimally accessible.

https://bugzilla.gnome.org/show_bug.cgi?id=725864

12 years agoa11y: Add GtkPopopverAccessible
Carlos Garnacho [Thu, 6 Mar 2014 23:07:54 +0000 (00:07 +0100)]
a11y: Add GtkPopopverAccessible

And let GtkPopover use it as its GtkAccessible implementation, this
accessible sets the POPUP_FOR relationship to the relative-to widget,
and keeps track of changes there.

https://bugzilla.gnome.org/show_bug.cgi?id=725864

12 years agowindow: Emit a11y signals directly on popover added/removed
Carlos Garnacho [Mon, 10 Mar 2014 11:27:50 +0000 (12:27 +0100)]
window: Emit a11y signals directly on popover added/removed

As those are internal children, there's no signal that GtkWindowAccessible
could catch when those are added or removed, so make GtkWindow use the private
GtkContainerAccessible methods to add/remove the child accessible when that
happens.

https://bugzilla.gnome.org/show_bug.cgi?id=725864

12 years agoa11y: Add private GtkContainerAccessible functions to add/remove a child
Carlos Garnacho [Mon, 10 Mar 2014 15:12:05 +0000 (16:12 +0100)]
a11y: Add private GtkContainerAccessible functions to add/remove a child

This may be useful in container implementations, or for internal children
that trigger no signal emission.

https://bugzilla.gnome.org/show_bug.cgi?id=725864

12 years agoa11y: Make GtkWindowAccessible know about popovers
Carlos Garnacho [Thu, 6 Mar 2014 23:07:00 +0000 (00:07 +0100)]
a11y: Make GtkWindowAccessible know about popovers

https://bugzilla.gnome.org/show_bug.cgi?id=725864

12 years agowayland: Clean up a bit
Jasper St. Pierre [Mon, 10 Mar 2014 17:39:55 +0000 (13:39 -0400)]
wayland: Clean up a bit

12 years agowayland: Move some code around
Jasper St. Pierre [Mon, 10 Mar 2014 17:31:53 +0000 (13:31 -0400)]
wayland: Move some code around

12 years agowayland: Fix submenu positioning
Jasper St. Pierre [Mon, 10 Mar 2014 17:30:21 +0000 (13:30 -0400)]
wayland: Fix submenu positioning

window->x / window->y are in "root window coordinates", e.g. relative
to the topmost toplevel. However, the coordinates in get_xdg_popup are
relative to the passed-in surface, so we need to do the reverse
translation here.

12 years agomessage dialog: Fine-tune vertical spacing
Matthias Clasen [Mon, 10 Mar 2014 10:13:38 +0000 (06:13 -0400)]
message dialog: Fine-tune vertical spacing

Requested in
https://bugzilla.gnome.org/show_bug.cgi?id=723668

12 years agogtk3-demo: run button should be able to focus.
Phillip Wood [Fri, 7 Mar 2014 21:35:17 +0000 (21:35 +0000)]
gtk3-demo: run button should be able to focus.

https://bugzilla.gnome.org/show_bug.cgi?id=725141

12 years agoWindow: Focus custom titlebar with F10
Phillip Wood [Tue, 4 Mar 2014 11:06:30 +0000 (11:06 +0000)]
Window: Focus custom titlebar with F10

As discussed on desktop-devel-list [1], "There should be an intuitive,
consistent, immediate way to jump to the widgets that live in the
header bar." F10 has been suggested for this as it is already used to
active menubars.

F10 will focus the custom titlebar widget if the window has one and it
isn't already focused. If the titlebar widget doesn't exist or is
already focused then F10 focuses the menubar if there is one.

[1] https://mail.gnome.org/archives/desktop-devel-list/2014-February/msg00176.html

https://bugzilla.gnome.org/show_bug.cgi?id=725141

12 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Sun, 9 Mar 2014 04:55:17 +0000 (12:55 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

12 years agoUpdated Latvian translation
Rūdolfs Mazurs [Sat, 8 Mar 2014 17:09:20 +0000 (19:09 +0200)]
Updated Latvian translation

12 years agoUpdated Latvian translation
Rūdolfs Mazurs [Sat, 8 Mar 2014 14:19:11 +0000 (16:19 +0200)]
Updated Latvian translation

12 years agoUpdated Chinese (China) translation
Wylmer Wang [Sat, 8 Mar 2014 13:18:19 +0000 (13:18 +0000)]
Updated Chinese (China) translation

12 years agoUpdated Chinese (China) translation
Wylmer Wang [Sat, 8 Mar 2014 13:16:19 +0000 (13:16 +0000)]
Updated Chinese (China) translation

12 years agoupdate Punjabi Translation 07March2014: Alam
A S Alam [Sat, 8 Mar 2014 02:43:50 +0000 (20:43 -0600)]
update Punjabi Translation 07March2014: Alam

12 years agoUpdated Korean translation
Changwoo Ryu [Fri, 7 Mar 2014 15:46:29 +0000 (00:46 +0900)]
Updated Korean translation

12 years agowindow: Turn popovers into internal children
Carlos Garnacho [Thu, 6 Mar 2014 22:06:40 +0000 (23:06 +0100)]
window: Turn popovers into internal children

It turns out popovers are already smart enough to cope with this
situation, so let popovers be internal children so things that rely
on gtk_container_forall(), like DnD, work without modifications.

https://bugzilla.gnome.org/show_bug.cgi?id=725727

12 years agoFix font size when gdk_x11_display_set_window_scale() is used
Owen W. Taylor [Wed, 5 Mar 2014 20:42:38 +0000 (15:42 -0500)]
Fix font size when gdk_x11_display_set_window_scale() is used

We have a hack in the XSETTINGS code to substitute gtk-xft-dpi
with gdk-unscaled-dpi unless the screen has a fixed window scale,
in which case we just use gtk-xft-dpi.

But if the screen is changed to have a fixed window scale, then
the substituted value of gdk-unscaled-dpi will stick around until
the next (coincidental) change to XSETTINGS. To fix this, force
an immediate reread of the XSETTINGS property when
gdk_x11_display_set_window_scale() is used.

https://bugzilla.gnome.org/show_bug.cgi?id=725754

12 years agoentry: Make DnD coordinate calculation compensate for entry icons
Carlos Garnacho [Fri, 7 Mar 2014 00:21:50 +0000 (01:21 +0100)]
entry: Make DnD coordinate calculation compensate for entry icons

This made DnD have effect farther on the left when dragging text over
any entry with icons in it.

https://bugzilla.gnome.org/show_bug.cgi?id=725866

12 years agoentry: use priv->dnd_position when rendering the DND cursor
Carlos Garnacho [Fri, 7 Mar 2014 00:19:50 +0000 (01:19 +0100)]
entry: use priv->dnd_position when rendering the DND cursor

This makes "cursor position" track the DnD point again, looks much
more intuitive than just rendering it on the pre-DnD position.

https://bugzilla.gnome.org/show_bug.cgi?id=725866

12 years agoImprove GtkStack documentation
Matthias Clasen [Fri, 7 Mar 2014 03:50:40 +0000 (22:50 -0500)]
Improve GtkStack documentation

As has been pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=725711
it is a little confusing that we have the concept of
a visible child and of the child being visible itself.

12 years agotests: fix testcalendar
Carlos Garnacho [Fri, 7 Mar 2014 01:48:07 +0000 (02:48 +0100)]
tests: fix testcalendar

Missing argument in gtk_style_context_get(), fooled by varargs.

12 years agocalendar: grab focus first, emit signals after
Carlos Garnacho [Fri, 7 Mar 2014 01:35:30 +0000 (02:35 +0100)]
calendar: grab focus first, emit signals after

It may be unusual, but handlers of day-selected may want to transfer
focus somewhere else, without getting it reset back right after by/to
the calendar. This makes popovers demo work on the calendar again, for
one...

12 years agoAllow selecting a dark variant with GTK_THEME
Matthias Clasen [Fri, 7 Mar 2014 00:27:37 +0000 (19:27 -0500)]
Allow selecting a dark variant with GTK_THEME

Dark themes need to be debugged, too.

Author:    Matthias Clasen <mclasen@redhat.com>

12 years agopopover: Track toplevel's focus widget when visible
Carlos Garnacho [Thu, 6 Mar 2014 15:58:06 +0000 (16:58 +0100)]
popover: Track toplevel's focus widget when visible

If the toplevel focus widget is forced out of the popover (eg. through
gtk_widget_grab_focus() anywhere else), then dismiss the popover.

12 years agopopover: Track toplevel focus changes
Carlos Garnacho [Thu, 6 Mar 2014 13:50:35 +0000 (14:50 +0100)]
popover: Track toplevel focus changes

Make the popover temporarily undo the GTK+ grab, so it remains modal
to its window, but does not attempt to steal focus on other non-modal
windows that get the focus.

This was most confusing with keyboard navigation, as the focus would
remain stuck on the popover, and not move to the newly focused window
after the popover was dismissed. It didn't have as much effect on
pointer operations as only the first click would be consumed in order
to hide the popover.

12 years agopopover: Only give back focus to drawable widgets
Carlos Garnacho [Thu, 6 Mar 2014 19:38:11 +0000 (20:38 +0100)]
popover: Only give back focus to drawable widgets

If the previous focus widget is not drawable anymore, don't even
bother in transmitting the focus grab to it.

12 years agopopover: dispose popovers when unmanaging them
Carlos Garnacho [Thu, 6 Mar 2014 17:59:40 +0000 (18:59 +0100)]
popover: dispose popovers when unmanaging them

This makes popovers get rid of dangling pointers at the time of destroying
the relative-to widget, just in case these are kept alive by a reference.

12 years agogtkentrycompletion: fix a critical warning
Claudio Saavedra [Thu, 6 Mar 2014 14:34:10 +0000 (16:34 +0200)]
gtkentrycompletion: fix a critical warning

There are early returns in this method before the completion timeout
is set later on, so set the source to 0 to avoid trying to remove it
later again.

https://bugzilla.gnome.org/show_bug.cgi?id=725824

12 years agoUpdated Brazilian Portuguese translation
Rafael Ferreira [Thu, 6 Mar 2014 10:03:41 +0000 (10:03 +0000)]
Updated Brazilian Portuguese translation

12 years agogtkmenu: displace popups by their css margin
Lars Uebernickel [Wed, 5 Mar 2014 11:59:24 +0000 (12:59 +0100)]
gtkmenu: displace popups by their css margin

Without a margin, the pointer is above the first (or last) menu item,
making it easy to accidentally activate that item.

https://bugzilla.gnome.org/show_bug.cgi?id=591258

12 years agoGtkIconViewAccessible: Don't access freed item
Marek Kasik [Tue, 4 Mar 2014 14:17:23 +0000 (15:17 +0100)]
GtkIconViewAccessible: Don't access freed item

Don't get index from deleted GtkIconViewItem.
Remove the item before traversing list of items.

https://bugzilla.gnome.org/show_bug.cgi?id=701884

12 years agoreftests: Remove unused argument from function
Benjamin Otte [Mon, 3 Mar 2014 13:21:02 +0000 (14:21 +0100)]
reftests: Remove unused argument from function

12 years agoseparatortoolitem: Make gcc stop complaining
Benjamin Otte [Sun, 2 Mar 2014 20:49:35 +0000 (21:49 +0100)]
separatortoolitem: Make gcc stop complaining

No, a ButtonEvent and a MotionEvent are not the same thing.

12 years agobroadway: Print a useful error message
Benjamin Otte [Sun, 2 Mar 2014 16:59:34 +0000 (17:59 +0100)]
broadway: Print a useful error message

.. instead of the generic "failed to open display".

12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 5 Mar 2014 17:27:25 +0000 (18:27 +0100)]
Updated Norwegian bokmål translation

12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 5 Mar 2014 17:25:51 +0000 (18:25 +0100)]
Updated Norwegian bokmål translation

12 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 5 Mar 2014 15:40:04 +0000 (16:40 +0100)]
Updated Spanish translation

12 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 5 Mar 2014 15:39:52 +0000 (16:39 +0100)]
Updated Spanish translation

12 years agopopover: Set pointer motion mask on the popover window
Carlos Garnacho [Wed, 5 Mar 2014 12:50:17 +0000 (13:50 +0100)]
popover: Set pointer motion mask on the popover window

This is not necessary for the popover itself, but helps tooltips
code confine the widget lookup within the popover if the pointer
is inside it, otherwise the widget lookup may turn out wrong for
motion events, starting the tooltip widget lookup from the toplevel
window, mistakenly triggering tooltips on the natural window
descendants (ie. the widget below the popover)

https://bugzilla.gnome.org/show_bug.cgi?id=724785

12 years agoicontheme: support emblems in symbolic icons
Cosimo Cecchi [Wed, 6 Nov 2013 02:32:28 +0000 (18:32 -0800)]
icontheme: support emblems in symbolic icons

We were failing to apply emblems in the symbolic icons code path.

https://bugzilla.gnome.org/show_bug.cgi?id=725683

12 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Tue, 4 Mar 2014 12:17:10 +0000 (20:17 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

12 years agoBump version
Matthias Clasen [Tue, 4 Mar 2014 05:19:56 +0000 (00:19 -0500)]
Bump version

12 years ago3.11.8
Matthias Clasen [Tue, 4 Mar 2014 03:35:20 +0000 (22:35 -0500)]
3.11.8

12 years agoUpdate messagedialog a11y test
Matthias Clasen [Tue, 4 Mar 2014 04:37:37 +0000 (23:37 -0500)]
Update messagedialog a11y test

12 years agoFix up builder test
Matthias Clasen [Tue, 4 Mar 2014 04:30:55 +0000 (23:30 -0500)]
Fix up builder test

Dialogs now report two children. Thats alright, adapt
the test to deal with it.

12 years agoFix up signal deprecation
Matthias Clasen [Tue, 4 Mar 2014 04:07:50 +0000 (23:07 -0500)]
Fix up signal deprecation

12 years agoDeprecate GdkEventVisibility and ::visibility-notify-event
Matthias Clasen [Mon, 3 Mar 2014 23:31:06 +0000 (18:31 -0500)]
Deprecate GdkEventVisibility and ::visibility-notify-event

These don't really work anymore in a composited world.
Lets make it official.
https://bugzilla.gnome.org/show_bug.cgi?id=481073

12 years agoAllow applications to use gtk-menu-bar-accel in 3.12
Matthias Clasen [Mon, 23 Sep 2013 17:10:19 +0000 (13:10 -0400)]
Allow applications to use gtk-menu-bar-accel in 3.12

gnome-terminal is still using this setting, so we'll let
applications override it for another cycle. It is no longer
backed by a system-wide setting, though, and it will still
go away eventually.

This partically reverts b26c74e5dac0b5fd869d2c8cc7a0edb6b01aeebd

12 years agoAllow applications to use gtk-enable-mnemonics in 3.12
Matthias Clasen [Mon, 23 Sep 2013 17:01:49 +0000 (13:01 -0400)]
Allow applications to use gtk-enable-mnemonics in 3.12

gnome-terminal is still using this setting, so we'll let
applications override it for another cycle. It is no longer
backed by a system-wide setting, though, and it will still
go away eventually.

This partically reverts 7e3a494fac62140f466fc43f6cc061215953e9b1

12 years agoGtkTreeView documentation fixes
Phillip Wood [Mon, 3 Mar 2014 10:40:35 +0000 (10:40 +0000)]
GtkTreeView documentation fixes

Add documentation for GtkTreeView::move-cursor

Add links to GtkTreeModel::row-inserted and GtkTreeModel::row-deleted
in the documentation for gtk_tree_view_set_reorderable ().

https://bugzilla.gnome.org/show_bug.cgi?id=725560

12 years agoSome more doc rewording
Matthias Clasen [Mon, 3 Mar 2014 23:13:24 +0000 (18:13 -0500)]
Some more doc rewording

12 years agoFix typo in gtk_window_set_default() documentation
Phillip Wood [Mon, 3 Mar 2014 10:43:38 +0000 (10:43 +0000)]
Fix typo in gtk_window_set_default() documentation

The documentation should link to gtk_widget_grab_default() rather than
gtk_widget_grab_focus().

https://bugzilla.gnome.org/show_bug.cgi?id=725559

12 years agoGtkRange: make autoscrolling work for inverted ranges
Matthias Clasen [Mon, 3 Mar 2014 22:49:38 +0000 (17:49 -0500)]
GtkRange: make autoscrolling work for inverted ranges

This problem was discovered in
https://bugzilla.gnome.org/show_bug.cgi?id=725225

12 years agotreeselection docs: spelling fix
Christoph Reiter [Wed, 26 Feb 2014 09:46:43 +0000 (10:46 +0100)]
treeselection docs: spelling fix

https://bugzilla.gnome.org/show_bug.cgi?id=725205

12 years agodialogs: always use CSD on dialogs
William Jon McCann [Thu, 27 Feb 2014 19:19:32 +0000 (14:19 -0500)]
dialogs: always use CSD on dialogs

If we aren't using a header bar then put a fake titlebar
box on it so we can round the corners.

One of the advantages of this is so that the styling of the dialog
is completely within one theme framework. This prevents skew between
the theming expectations from the window manager and GTK+.

https://bugzilla.gnome.org/show_bug.cgi?id=725345

12 years agoUpdated GAlician translations
Fran Diéguez [Mon, 3 Mar 2014 16:32:05 +0000 (17:32 +0100)]
Updated GAlician translations

12 years agoUpdated Galician translations
Fran Diéguez [Mon, 3 Mar 2014 16:26:41 +0000 (17:26 +0100)]
Updated Galician translations

12 years agotestdialogs: Add message dialog examples
Matthias Clasen [Mon, 3 Mar 2014 12:05:31 +0000 (07:05 -0500)]
testdialogs: Add message dialog examples

Related to
https://bugzilla.gnome.org/show_bug.cgi?id=723668

12 years agofile-chooser: emit selection-changed when location entry changes too
William Jon McCann [Fri, 28 Feb 2014 20:19:00 +0000 (15:19 -0500)]
file-chooser: emit selection-changed when location entry changes too

https://bugzilla.gnome.org/show_bug.cgi?id=547988

12 years agoRevert "GtkEntryCompletion: call setter for "text-column""
Matthias Clasen [Mon, 3 Mar 2014 10:51:02 +0000 (05:51 -0500)]
Revert "GtkEntryCompletion: call setter for "text-column""

This reverts commit 9761a966d8ffda724226a21022a42ce40932b443.

12 years agoRevert "gtk_entry_completion_set_text_column: reuse old renderer"
Matthias Clasen [Mon, 3 Mar 2014 10:50:54 +0000 (05:50 -0500)]
Revert "gtk_entry_completion_set_text_column: reuse old renderer"

This reverts commit f6a0debdd9d4f90b9d6b54c263b10926ba530c7e.

12 years agoRevert "GtkEntryCompletion: call cell_area()->clear()"
Matthias Clasen [Mon, 3 Mar 2014 10:50:47 +0000 (05:50 -0500)]
Revert "GtkEntryCompletion: call cell_area()->clear()"

This reverts commit 3c2829713463228094d66170564a4d6d7c31c245.

12 years agoRevert "gtk_entry_completion_get_cells: revert returning NULL"
Matthias Clasen [Mon, 3 Mar 2014 10:50:34 +0000 (05:50 -0500)]
Revert "gtk_entry_completion_get_cells: revert returning NULL"

This reverts commit a9a6fb045a0faedb30ffdad4ed979f380c483ebd.

12 years agoRevert "GtkEntryCompletion: fix warning"
Matthias Clasen [Mon, 3 Mar 2014 10:50:25 +0000 (05:50 -0500)]
Revert "GtkEntryCompletion: fix warning"

This reverts commit 2f0c610c35215229e53aac4c37fdea49e25f3742.

12 years agoUpdated Thai translation
Theppitak Karoonboonyanan [Mon, 3 Mar 2014 11:01:34 +0000 (18:01 +0700)]
Updated Thai translation

12 years agoprintbackends: Fix make dist
Rico Tzschichholz [Mon, 3 Mar 2014 06:33:53 +0000 (07:33 +0100)]
printbackends: Fix make dist

12 years agoUpdated Polish translation
Piotr Drąg [Sun, 2 Mar 2014 23:45:41 +0000 (00:45 +0100)]
Updated Polish translation

12 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 2 Mar 2014 18:05:19 +0000 (20:05 +0200)]
Updated Lithuanian translation

12 years agotrivial: fix typo in docs of gtk_css_provider_to_string
Andrés G. Aragoneses [Sun, 2 Mar 2014 11:09:48 +0000 (12:09 +0100)]
trivial: fix typo in docs of gtk_css_provider_to_string

12 years agoautogen.sh: fail faster/clearer if g-i not found
Andrés G. Aragoneses [Sun, 2 Mar 2014 08:51:47 +0000 (09:51 +0100)]
autogen.sh: fail faster/clearer if g-i not found

GOBJECT_INTROSPECTION_CHECK macro can be missing if introspection
is not installed, so this way the following error is prevented:

"gtk/Makefile.am:1324: error: HAVE_INTROSPECTION does not appear
in AM_CONDITIONAL"

https://bugzilla.gnome.org/show_bug.cgi?id=723438

12 years agotrivial: fix typo in docs of gtk_css_provider_to_string
Andrés G. Aragoneses [Sun, 2 Mar 2014 08:47:31 +0000 (09:47 +0100)]
trivial: fix typo in docs of gtk_css_provider_to_string

12 years agoUpdated Kazakh translation
Baurzhan Muftakhidinov [Sun, 2 Mar 2014 03:58:08 +0000 (03:58 +0000)]
Updated Kazakh translation

12 years agoUpdated Hebrew properties translation
Yosef Or Boczko [Sat, 1 Mar 2014 23:17:40 +0000 (01:17 +0200)]
Updated Hebrew properties translation

12 years agoUpdated Hebrew translation
Yosef Or Boczko [Sat, 1 Mar 2014 23:17:36 +0000 (01:17 +0200)]
Updated Hebrew translation

12 years agoUpdated Brazilian Portuguese translation
Rafael Ferreira [Fri, 28 Feb 2014 15:14:33 +0000 (15:14 +0000)]
Updated Brazilian Portuguese translation

12 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Fri, 28 Feb 2014 14:28:39 +0000 (15:28 +0100)]
Updated POTFILES.in and POTFILES.skip

12 years agoNew cloudprint GTK+ print module for Google Cloud Print.
Tim Waugh [Wed, 26 Feb 2014 16:05:44 +0000 (16:05 +0000)]
New cloudprint GTK+ print module for Google Cloud Print.

This is a web service provided by Google that allows people to
share their printers (https://www.google.com/cloudprint/learn/).

In addition to being able to print to printers shared on Google Cloud
Print, there is an equivalent of "Print to file" in the form of "Save to
Google Drive".

The cloudprint module uses gnome-online-accounts to obtain the OAuth 2.0
access token for the Google account.

Currently it can discover available printers, get simple details about
them such as display name and status, and submit jobs without any
special options.

https://bugzilla.gnome.org/show_bug.cgi?id=723368

12 years agogdkwindow: Call function instead of copying its code
Benjamin Otte [Fri, 28 Feb 2014 02:07:18 +0000 (03:07 +0100)]
gdkwindow: Call function instead of copying its code

gdk_window_get_origin() is just a variant of
gdk_window_get_root_coords() after all.

12 years agoreftests: Add a test for a widget stacking regression
Benjamin Otte [Tue, 25 Feb 2014 13:11:20 +0000 (14:11 +0100)]
reftests: Add a test for a widget stacking regression

GTK 3.10 fails to obey the stacking order when drawing widgets.

https://bugzilla.gnome.org/show_bug.cgi?id=725089

12 years agofixed: Fix drawing order
Benjamin Otte [Tue, 25 Feb 2014 13:51:16 +0000 (14:51 +0100)]
fixed: Fix drawing order

Restore the drawing order in GtkFixed to what it was in 3.8. With the
GDK drawing changes this will not be correct in some cases (un-windowed
children can now overlap windowed children and native children overlap
everything), but fixes Eclipse drawing.

https://bugzilla.gnome.org/show_bug.cgi?id=725089

12 years agogdkwindow: Always pass the impl window to GdkWindowImpl::get_root_coords
Jasper St. Pierre [Fri, 28 Feb 2014 02:02:22 +0000 (21:02 -0500)]
gdkwindow: Always pass the impl window to GdkWindowImpl::get_root_coords

The point of GdkWindowImpl::get_root_coords is to translate the passed
in coordinates against the passed-in impl window. For a child window,
in fact, window->abs_x and window->abs_y already track the child
window's coordinates against the impl window.

If we pass in a child window, and backends don't explicitly get the impl
window from it, we'll double-count the child window.

Really, we should *always* be passing impl windows to backends, and
never child windows. However, I'm a bit worried for regressions late
in the cycle if we want to fix up the rest of the callers, like
gdk_window_get_geometry, so I'm only going to touch get_root_coords
for now after careful review of all the backends.

12 years agoRemove the return value of GdkWindowImpl::get_root_coords
Jasper St. Pierre [Fri, 28 Feb 2014 01:58:13 +0000 (20:58 -0500)]
Remove the return value of GdkWindowImpl::get_root_coords

It's unused by callers, and the historical return values are
undocumented, so just remove it now.

12 years agowayland: Seal up a non-declared public member
Jasper St. Pierre [Thu, 27 Feb 2014 22:32:53 +0000 (17:32 -0500)]
wayland: Seal up a non-declared public member

12 years agowayland: Remove old, outdated comment
Jasper St. Pierre [Thu, 27 Feb 2014 22:00:46 +0000 (17:00 -0500)]
wayland: Remove old, outdated comment

12 years agowayland: Fix margins at startup
Jasper St. Pierre [Thu, 27 Feb 2014 21:54:20 +0000 (16:54 -0500)]
wayland: Fix margins at startup

GtkWindow calls set_shadow_width then maps the window, meaning
that we never set the margin. Save it when we set and then set
it when we create the XDG surface.

12 years agoUpdated Brazilian Portuguese translation
Rafael Ferreira [Thu, 27 Feb 2014 16:16:30 +0000 (16:16 +0000)]
Updated Brazilian Portuguese translation

12 years agodialog: remove suggested action class when changing default action
William Jon McCann [Thu, 27 Feb 2014 14:09:28 +0000 (09:09 -0500)]
dialog: remove suggested action class when changing default action

So that we don't have multiple widgets with the style class set
to suggested-action.

12 years agodialog: set suggested-action even on dialogs without header bars
William Jon McCann [Thu, 27 Feb 2014 14:08:53 +0000 (09:08 -0500)]
dialog: set suggested-action even on dialogs without header bars

It is up to the theme whether these should be styled.

12 years agoabout-dialog: link directly to the 3.0 version of GPL licenses
William Jon McCann [Thu, 27 Feb 2014 13:12:56 +0000 (08:12 -0500)]
about-dialog: link directly to the 3.0 version of GPL licenses

In the unlikely case that there is another GPL released in the future
it would be best if we link directly to the 3.0 version of the
license description instead of the alias to the latest
version.

12 years agowidget-factory: add entry progress modes
William Jon McCann [Wed, 26 Feb 2014 16:16:06 +0000 (11:16 -0500)]
widget-factory: add entry progress modes

12 years agodocs: fix headerbar screenshot
William Jon McCann [Tue, 25 Feb 2014 22:44:06 +0000 (17:44 -0500)]
docs: fix headerbar screenshot

12 years agoa11y: Fix refcounting for treeview cells
Benjamin Otte [Wed, 26 Feb 2014 01:29:36 +0000 (02:29 +0100)]
a11y: Fix refcounting for treeview cells

Old code assumed that AT-SPI would keep track of references and
therefore tried to only hold weak references. On the other hand it also
tried to keep objects alive so it referenced objects very randomly. All
of that lead to cycles and leaking.

As AT-SPI does not keep track of objects at all, the treeview now does.
The refcounting looks as follows:
GtkTreeViewAccessible
  => creates per row/column
GtkTreeViewAccessibleCellInfo
  => which references 1
GtkCellAccessible

If there is only one cell, this accessible is a
GtkRendererCellAccessible, otherwise a GtkContainerCellAccessible is
created and that accessible holds references to the
GtkRendererCellAccessibles that are created for every cell renderer.

https://bugzilla.gnome.org/show_bug.cgi?id=554618

12 years agoa11y: Refactor function
Benjamin Otte [Wed, 26 Feb 2014 00:47:50 +0000 (01:47 +0100)]
a11y: Refactor function

Make the intent of the function clear by implementing it that way.

12 years agoa11y: Split out a function
Benjamin Otte [Mon, 24 Feb 2014 17:02:41 +0000 (18:02 +0100)]
a11y: Split out a function

This will make the next refactoring easier.

12 years agoa11y: Remove unused variable
Benjamin Otte [Mon, 24 Feb 2014 14:36:03 +0000 (15:36 +0100)]
a11y: Remove unused variable

12 years agoa11y: Use more obvious function name
Benjamin Otte [Mon, 24 Feb 2014 14:19:00 +0000 (15:19 +0100)]
a11y: Use more obvious function name

12 years agoa11y: Split out creation of cell info
Benjamin Otte [Mon, 24 Feb 2014 13:17:28 +0000 (14:17 +0100)]
a11y: Split out creation of cell info

Don't mix cell info creation with cell accessible creation. Instead,
first create the accessible, then create the cell info.